/*
 * Copyright (c) 2020, 2023, 3044483124@qq.com All rights reserved.
 *
 */
package itcast;

/**
 * <p>Project: JavaStudy - Opt3
 * <p>Powered by jiangbo On 2023-01-31
 * 15:52:22
 * <p>Created by IntelliJ IDEA
 *
 * @author jiangbo [3044483124@qq.com]
 * @version 1.0
 * @since 8/17
 */
public class Opt3 {
    public static void main(String[] args) {
//比较运算 > >= < <= != <> == instanceof 判断对象不是是某类的实例
//false
        System.out.println(2>3);
//false
        System.out.println(2>=3);
//false
        System.out.println(2==3);
//true
        System.out.println(2<3);
//true
        System.out.println(2<=3);
//true
        System.out.println(2!=3);
        String s1 = "李四";
        String s2 = "王五";
//false
        System.out.println(s1==s2);
//true
        System.out.println(s1 instanceof String);
    }

}


